package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.DataDetail;
import cn.wolfcode.crm.query.impl.DataDetailQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DataDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DataDetail record);

    int queryForCount(DataDetailQuery dataDetailQuery);

    List<DataDetail> queryForList(DataDetailQuery dataDetailQuery);

    List<DataDetail> selectByData(Long id);

    List<DataDetail> selectAllByCus(@Param("sn")String sn);

    int updateByPrimaryKey(DataDetail record);

    DataDetail selectByPrimaryKey(Long id);
}